<@master template="/common/master"  title="贷款进度查询">
<@css href="/css/wx/wx.css" rel="stylesheet"/>
<form id="subForm" action="/eascs-o2o-h5/loan/scheduelInqueryResult" method="post">
<div class="fromDiv">
	<div class="yytlogo"><@img src="/images/public/logo.png"/></div>
	<ul>
    	<li><input name="uname" type="text" value="${uname}" placeholder="请输入您的姓名"></li>
        <li><input name="idCard" type="text" value="${idCard}" placeholder="请输入您的身份证"></li>
        <li><input name="mobile"  type="tel" value="${moblie}" placeholder="请输入您的手机号码"></li>
    </ul>
	<p id="errorText" class="red mb15">${errorMsg}</p>
    <input id="subBtn" type="submit" value="查询贷款进度" class="btn">
</div>
</form>
</@master>
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?3ab2a83a372d20f084552b836c038302";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>
<@js>
$(document).ready(function(){
    	$('#subBtn').bind("click",function(){
    		var uname=$('#subForm input[name="uname"]').val();
    		if(!uname){
    			$('#errorText').text('姓名不能为空');
    			return false;
    		}
    		var rege=/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;
    		var idCard=$('#subForm input[name="idCard"]').val();
    		var loanType=$('#subForm input[name="loanType"]').val();
    		if(!rege.test(idCard)){
    			$('#errorText').text('身份证为空或格式不对');
    			return false;
    		}
    		var rege=/^(?:13\d|14\d|15\d|17\d|18\d)-?\d{5}(\d{3}|\*{3})$/;
    		var mobile=$('#subForm input[name="mobile"]').val();
    		if(!rege.test(mobile)){
    			$('#errorText').text('手机号码为空或格式不对');
    			return false;
    		}
    		$('#errorText').text('');
    		$('#subForm').submit();
    	});
	});
</@js> <@jsRender/>
